package com.ossjk.oa.system.service;

import com.ossjk.oa.system.entity.Post;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 岗位表 服务类
 * </p>
 *
 * @author chair
 * @since 2019-01-23
 */
public interface IPostService extends IService<Post> {
	
	Post findPostByEid(@Param("eid") String eid);

	/**
	 * 根据父id拿到子岗位
	 * 
	 * @param pid
	 * @return
	 */
	List<Post> selectSubByPid(String pid);

	/**
	 * 根据父id拿到子岗位id
	 * 
	 * @param pid
	 * @return
	 */
	List<String> selectSubIdByPid(String pid);
}
